home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
476-500
/
disk_499
/
diglib
/
diglib.lzh
/
source
/
MINMAX.for
< prev
next >
Wrap
Text File
|
1991-04-13
|
355b
|
16 lines
SUBROUTINE MINMAX(ARRAY,NPTS,BMIN,BMAX)
IMPLICIT NONE
REAL*4 BMIN,BMAX
INTEGER NPTS,I
C
C FIND MINIMUM AND MAXIMUM OF THE ARRAY
C
REAL*4 ARRAY(NPTS)
BMIN = ARRAY(1)
BMAX = BMIN
DO 100 I=2,NPTS
BMIN = AMIN1(BMIN,ARRAY(I))
100 BMAX = AMAX1(BMAX,ARRAY(I))
RETURN
END